import axios from './axios'
import {appUrl} from '@/config/config'
// 获取学生信息 /bdc​/api​/app​/student​/{id} 获取学生
export const getStudent = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/bdc/api/app/student/' + params.id,
            method: 'get'
        }).then(res => {
            resolve(res.data)
        })
    })
}
// 获取学生所学科目 /school/api/classroom/schoolClass/questionSubjects/{stageId}
export const getSubjects = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/school/api/classroom/schoolClass/questionSubjects/' + params.stageId,
			method: 'get'
        }).then(res => {
            resolve(res.data)
        })
    })
}
// 获取版本 /school​/api​/classroom​/schoolClass​/platformSchoolBookVersionList
export const getVersion = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/school/api/classroom/schoolClass/platformSchoolBookVersionList',
			method: 'get',
			params
        }).then(res => {
            resolve(res.data)
        })
    })
}
// 获取课本 /school/api/classroom/schoolClass/platformSchoolBookList
export const getBook = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/school/api/classroom/schoolClass/platformSchoolBookList',
			method: 'get',
			params
        }).then(res => {
            resolve(res.data)
        })
    })
}
// 获取强化列表 /school/api/classroom/errAnswerRecord/intensiveStatisticList
export const getIntensiv = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/school/api/classroom/errAnswerRecord/intensiveStatisticList',
			method: 'get',
			params
        }).then(res => {
            resolve(res.data)
        })
    })
}
// 获取强化题目 /school/api/classroom/errAnswerRecord/intensiveQuestionList
export const getIntensivQuestion = (params) => {
	// console.log(params)
    return new Promise((resolve,reject) => {
        axios({
            url: appUrl + '/school/api/classroom/errAnswerRecord/intensiveQuestionList',
			method: 'get',
			params
        }).then(res => {
            resolve(res.data)
        })
    })
}
